<?php
mysql_connect("127.0.0.1","root","sd2013");
mysql_select_db("mathRomp");

//Update user's score in the game
$q=mysql_query("UPDATE `Game` SET currentProb='".$_REQUEST['prob']."' WHERE gameId = ".$_REQUEST['gameId']."");
while($e=mysql_fetch_assoc($q)){
  $output[]=$e;
}
print(json_encode($output));

?>